<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11">
<html xml:lang="en" lang="en">
    <head>
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/form.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/toolbar.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/general.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/login.css" type="text/css" media="screen" />
        <?php Yii::app()->ClientScript->registerCoreScript('jquery'); ?>
        <style type="text/css">
        
        </style>
    </head>
    
    <body>
        <div id="header"></div>        
        <div id="main">
            <div class="inner">
				<div class="login">
					<div class="form">
						<?php
							$form=$this->beginWidget('FActiveForm', array(
							'id'=>'user-login-form',
							'enableAjaxValidation'=>false,
							));
						?>
							<a href="#"><img src="<?php echo themeUrl(); ?>/images/Kodo-logo.png" class="icon" /></a>                        
							<p>Login to manage your website.</p>						
						
							<div class="row">
								<?php echo $form->labelEx($user,'email'); ?>
								<?php echo $form->textField($user, 'email'); ?>
								<?php echo $form->error($user,'email'); ?>
							</div>
							<div class="row">
								<?php echo $form->labelEx($user,'password'); ?>
								<?php echo $form->passwordField($user, 'password',array('class'=>'password')); ?>
								<?php echo $form->error($user,'password'); ?>
							</div>
							 <div class="row remember">
								<input type="checkbox" name="remember" id="remember" />
								<label>Remember me on this computer</label>				
							</div>                       
							<div class="row buttons">
								  <?php echo CHtml::submitButton('Sign in', array('class'=>'submit-button')); ?>
								  <?php echo FHtml::link('Forgot password ?', $this->createUrl('/Core/user/forgotPassword'), array('class' => 'forgot-password', 'title' => 'Forgot password')); ?>
							</div>
						<?php $this->endWidget(); ?>                    
					</div>
					<div class="copyright">&copy; 2012 - Indition CMS Admin</div>
				</div>
                
            </div>
        </div>
        
        <div id="footer"></div>
    </body>
    <script>
    function CheckRemember()
    {
        if ($('#remember').attr('checked'))
            $('#remember').attr('checked', false);
        else
            $('#remember').attr('checked', true);
    }
    </script>
    <script type="text/javascript">        
        function sizeBox() {
            var w = $(window).width();
            var h = document.getElementsByTagName('html')[0].clientHeight
            $('.login').css('position', 'absolute');
            $('.login').css('top', h/2-($('.login').height()/2)-50);
            $('.login').css('left', w/2-($('.login').width()/2));
        }

        $(document).ready(function() {
            sizeBox();            
        });

        $(window).resize(function() {
            sizeBox();
        });

    </script>
</html>	